package com.zian.domain.po;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;

import com.zian.enums.IsDeletedEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author
 * @since 2024-09-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_shopping_cart_item")
 @ApiModel("SysShoppingCartItem对象" )
public class SysShoppingCartItem implements Serializable {


    private static final long serialVersionUID = 1L;

     @ApiModelProperty( "购物项主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

     @ApiModelProperty( "用户主键id")
    private Long userId;

     @ApiModelProperty( "关联商品id")
    private Long goodsId;

     @ApiModelProperty( "数量(最大为5)")
    private Integer goodsCount;

     @ApiModelProperty( "删除标识字段(0-未删除 1-已删除)")
    private IsDeletedEnum isDeleted;

     @ApiModelProperty( "创建时间")
    @TableField(  fill = FieldFill.INSERT)
    private LocalDateTime createTime;

     @ApiModelProperty( "最新修改时间")
    @TableField( fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;


}
